package com.cloudkinto.service.order.vo;

import lombok.Data;

import java.util.List;

/**
 * Author Administrator
 *
 * @Des
 * @Version
 * @Date 2022/1/12
 */
@Data
public class ShopifyShippingEneity {
    /**
     * fulfillment : {"line_items_by_fulfillment_order":[{"fulfillment_order_id":1046000812,"fulfillment_order_line_items":[{"quantity":1,"id":1058737538}]}],"message":"The package was shipped this morning.","tracking_info":{"number":1562678,"company":"my-shipping-company","url":"https://www.my-shipping-company.com"},"notify_customer":false}
     */
    private FulfillmentEntity fulfillment;

    public void setFulfillment(FulfillmentEntity fulfillment) {
        this.fulfillment = fulfillment;
    }

    public FulfillmentEntity getFulfillment() {
        return fulfillment;
    }

    public class FulfillmentEntity {
        /**
         * line_items_by_fulfillment_order : [{"fulfillment_order_id":1046000812,"fulfillment_order_line_items":[{"quantity":1,"id":1058737538}]}]
         * message : The package was shipped this morning.
         * tracking_info : {"number":1562678,"company":"my-shipping-company","url":"https://www.my-shipping-company.com"}
         * notify_customer : false
         */
        private List<Line_items_by_fulfillment_orderEntity> line_items_by_fulfillment_order;
        private String message;
        private Tracking_infoEntity tracking_info;
        private boolean notify_customer;

        public void setLine_items_by_fulfillment_order(List<Line_items_by_fulfillment_orderEntity> line_items_by_fulfillment_order) {
            this.line_items_by_fulfillment_order = line_items_by_fulfillment_order;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public void setTracking_info(Tracking_infoEntity tracking_info) {
            this.tracking_info = tracking_info;
        }

        public void setNotify_customer(boolean notify_customer) {
            this.notify_customer = notify_customer;
        }

        public List<Line_items_by_fulfillment_orderEntity> getLine_items_by_fulfillment_order() {
            return line_items_by_fulfillment_order;
        }

        public String getMessage() {
            return message;
        }

        public Tracking_infoEntity getTracking_info() {
            return tracking_info;
        }

        public boolean isNotify_customer() {
            return notify_customer;
        }

        public class Line_items_by_fulfillment_orderEntity {
            /**
             * fulfillment_order_id : 1046000812
             * fulfillment_order_line_items : [{"quantity":1,"id":1058737538}]
             */
            private int fulfillment_order_id;
            private List<Fulfillment_order_line_itemsEntity> fulfillment_order_line_items;

            public void setFulfillment_order_id(int fulfillment_order_id) {
                this.fulfillment_order_id = fulfillment_order_id;
            }

            public void setFulfillment_order_line_items(List<Fulfillment_order_line_itemsEntity> fulfillment_order_line_items) {
                this.fulfillment_order_line_items = fulfillment_order_line_items;
            }

            public int getFulfillment_order_id() {
                return fulfillment_order_id;
            }

            public List<Fulfillment_order_line_itemsEntity> getFulfillment_order_line_items() {
                return fulfillment_order_line_items;
            }

            public class Fulfillment_order_line_itemsEntity {
                /**
                 * quantity : 1
                 * id : 1058737538
                 */
                private int quantity;
                private int id;

                public void setQuantity(int quantity) {
                    this.quantity = quantity;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public int getQuantity() {
                    return quantity;
                }

                public int getId() {
                    return id;
                }
            }
        }

        public class Tracking_infoEntity {
            /**
             * number : 1562678
             * company : my-shipping-company
             * url : https://www.my-shipping-company.com
             */
            private int number;
            private String company;
            private String url;

            public void setNumber(int number) {
                this.number = number;
            }

            public void setCompany(String company) {
                this.company = company;
            }

            public void setUrl(String url) {
                this.url = url;
            }

            public int getNumber() {
                return number;
            }

            public String getCompany() {
                return company;
            }

            public String getUrl() {
                return url;
            }
        }
    }
}
